﻿using System;
using System.Runtime.Serialization;
namespace FlyearAssist.Hibernating.DataModel
{
    [System.Runtime.Serialization.DataContract(
      Namespace = "http://NHibernateAssist.Flyear/DataModel",
        IsReference = true)]
    public class NOrder
    {
        [DataMember]
        public String PropertyName { get; set; }

        [DataMember]
        public OrderDirection OrderType { get; set; }

        public NOrder() { }
    }

    [System.Runtime.Serialization.DataContract(
       Namespace = "http://NHibernateAssist.Flyear/DataModel")]
    public enum OrderDirection
    {
        [EnumMember]
        ASC,
        [EnumMember]
        DESC
    }
}
